#ifndef HEADTRACKER_H
#define HEADTRACKER_H

#include "ofxCvHaarFinder.h"

class HeadTracker
{
    public:
        HeadTracker();
        virtual ~HeadTracker();
        void update();


        ofVideoGrabber 		vidGrabber;

        ofxCvColorImage			colorImg;

        ofxCvGrayscaleImage 	grayImage;
		ofxCvGrayscaleImage 	grayBg;
		ofxCvGrayscaleImage 	grayDiff;

        ofxCvContourFinder		contourFinder;
		ofxCvHaarFinder			haarFinder;

		int						threshold;
		bool					bLearnBakground;

		float face_pos_x;
		float face_pos_y;
};

#endif // HEADTRACKER_H
